package com.swl.juc.entity;

import java.util.Date;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * (Novel)表实体类
 *
 * @author makejava
 * @since 2021-09-29 14:43:47
 */
@SuppressWarnings("serial")
public class Novel extends Model<Novel> {

    private Integer id;

    private String title;

    private String context;

    private Date createdtime;

    private Integer sortId;

    private Integer votenumber;

    private String authorId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Date getCreatedtime() {
        return createdtime;
    }

    public void setCreatedtime(Date createdtime) {
        this.createdtime = createdtime;
    }

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public Integer getVotenumber() {
        return votenumber;
    }

    public void setVotenumber(Integer votenumber) {
        this.votenumber = votenumber;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
